﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushSql.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreDefault.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>SqlServer语句rollbackbug</h3>
    <p>
        <pre class="brush:sql;">
            begin try
                begin tran
                update table set a=1；
                commit tran
            end Try
                begin catch
                --如果此处未写tran，则rollback不会报错，但执行不成功。
                rollback tran
            end catch
        </pre>
    </p>
</body>
</html>